﻿using System;
using System.Runtime.Serialization;

namespace PH.Model.Temps
{
    [DataContract]
    public class TBookModel:MBase
    {
        [Model(ConvertType= AttributeType.IgnoreUpdate)]
        [DataMember]
        public int ID { get; set; }
        [Model]
        [DataMember]
        public string BookNo { get; set; }
        [Model]
        [DataMember]
        public System.DateTime BookTime { get; set; }
        [Model]
        [DataMember]
        public string Address { get; set; }
        [Model]
        [DataMember]
        public string Subject { get; set; }
        [Model]
        [DataMember]
        public string StudentNo { get; set; }
        [Model]
        [DataMember]
        public string StudentName { get; set; }
        [Model]
        [DataMember]
        public string SchoolName { get; set; }
        [Model]
        [DataMember]
        public string Grade { get; set; }
        [Model]
        [DataMember]
        public string ClassName { get; set; }
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public System.DateTime CreatedOn { get; set; }
    }

    [DataContract]
    public class TBookCollection : ModelCollectionBase<TBookModel> { }
}
